#include "app_pool.h"
#include "log.h"
#include "unistd.h"
static void *test_func(void *arg)
{
    char *name = (char *)arg;
    log_info("hello %s...", name);
    return NULL;
}

// 相当于线程池的需求方
int main(int argc, char const *argv[])
{
    // 1.初始化线程池
    app_pool_init();

    // 2.向线程池提交任务
    app_pool_add_task(test_func, "zhang san");
    // 等待
    sleep(5);

    // 3.销毁线程池
    app_pool_destory();
    return 0;
}
